package com.bdzl.biz.servicefeign;

import com.bdzl.biz.common.config.FeignConfig;
import com.bdzl.pub.config.Constant;
import com.bdzl.pub.util.param.PageUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@FeignClient(name="loanAuth", configuration = FeignConfig.class,contextId = "UserService",url = Constant.sys+":8002")
public interface AuthUserFeignSrevice {

    /**
     * 查询user
     * @param params
     * @return
     */
    @ResponseBody
    @GetMapping("/bdzl/user/list")
    public PageUtils list(@RequestParam Map<String, Object> params);
}
